package com.example.admin.myapplication.activities;

import android.os.Bundle;
import android.os.Handler;
import android.view.animation.Animation;
import android.widget.RelativeLayout;

import com.example.admin.myapplication.R;
import com.example.admin.myapplication.component.MainActivityComponent;
import com.example.admin.myapplication.presenter.MainPresenter;
import com.example.admin.myapplication.view.IMainView;

import javax.inject.Inject;

import butterknife.Bind;
import butterknife.ButterKnife;

public class MainActivity extends BaseActivity implements IMainView {

    @Bind(R.id.relativeL_splash)
    RelativeLayout relativeLSplash;

    @Inject
    MainPresenter mainPresenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
        new Handler().postDelayed(()->{},2000);

    }

    @Override
    public void initInject(MainActivityComponent mainActivityComponent) {
        mainActivityComponent.inject(this);
    }

    @Override
    public void startAnimation(Animation animation) {
        relativeLSplash.setAnimation(animation);
    }
}
